package com.gee.spring.boot.influxdb.core.query.segment;

import java.util.ArrayList;
import java.util.stream.Collectors;

import static com.gee.spring.boot.influxdb.core.constant.StrConstant.COMMA;

/**
 * @author gepengjun
 * @since 2024/4/28 8:43
 */
public class SelectSegmentList extends ArrayList<SelectSegment>  implements ISqlSegment{


    @Override
    public String getSqlSegment() {
        return this.stream().map(ISqlSegment::getSqlSegment).collect(Collectors.joining(COMMA));
    }
}
